<?php
$this->widget('bootstrap.widgets.TbGridView', array(
    'dataProvider' => $dataProvider,
    'type' => 'striped bordered condensed',
    'columns' => array(
        array('name' => 'inventory_id', 'value' => '$data->inventory_id', 'type' => 'number'),
        array('name' => 'item_id', 'value' => '$data->item->title'),
        array('name' => 'user_id', 'value' => '$data->user->username'),
        array('name' => 'date', 'value' => '$data->getDate()', 'type' => 'raw'),
        array('name' => 'price', 'value' => 'Yii::app()->numberFormatter->formatCurrency($data->price, "VND")', 'type' => 'raw'),
        array('name' => 'quantity', 'value' => 'Yii::app()->numberFormatter->formatDecimal($data->quantity)', 'type' => 'raw'),
    ),
));